package com.wanbangee.marksystem.service;

import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.PathVariable;

import com.wanbangee.marksystem.entities.MExamMarker;
import com.wanbangee.marksystem.entities.SScoreDetail;

public interface QualityCheckService {

	public MExamMarker selectInfoByExamIdSubIdTopicNo(Integer examId,
			Integer examSubId,
			Integer topicNo,
			MExamMarker mExamMarker
			);
	/**
	 * 查询整体的最大值和最小值
	 * @param examId
	 * @param examSubId
	 * @param topicNo
	 * @param scoreType
	 * @return
	 */
	public Map selectAllAvgMaxMin(Integer examId,Integer examSubId,Integer topicNo,Integer scoreType);
	
	/**
	 * 查询老师的阅卷信息
	 * @param examId
	 * @param examSubId
	 * @param topicNo
	 * @param markerId
	 * @param order
	 * @param scoreType
	 * @return
	 */
	public List<SScoreDetail> selectSScoreDetails(Integer examId,Integer examSubId,Integer topicNo,Integer markerId,Integer order,Integer scoreType);

	/**
	 * 打回重评
	 * @param examId
	 * @param examSubId
	 * @param scoreId
	 * @param repeatCause
	 * @return
	 */
	public Integer updateCheckScore(Integer examId,Integer examSubId,Integer scoreId,String repeatCause);
}
